package com.example.apple.myapplication625hap.bean;

/**
 * Created by Neusoft on 2016/12/20.
 */

public class CollectResult<T> {
    private int id;
    private int resid;
    private int userid;
    private String cctime;
    private int listorder;
    private T bean;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getResid() {
        return resid;
    }

    public void setResid(int resid) {
        this.resid = resid;
    }

    public int getUserid() {
        return userid;
    }

    public void setUserid(int userid) {
        this.userid = userid;
    }

    public String getCctime() {
        return cctime;
    }

    public void setCctime(String cctime) {
        this.cctime = cctime;
    }

    public int getListorder() {
        return listorder;
    }

    public void setListorder(int listorder) {
        this.listorder = listorder;
    }

    public T getBean() {
        return bean;
    }

    public void setBean(T bean) {
        this.bean = bean;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectResult<?> that = (CollectResult<?>) o;

        if (id != that.id) return false;
        if (resid != that.resid) return false;
        if (userid != that.userid) return false;
        if (listorder != that.listorder) return false;
        if (cctime != null ? !cctime.equals(that.cctime) : that.cctime != null) return false;
        return bean != null ? bean.equals(that.bean) : that.bean == null;

    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + resid;
        result = 31 * result + userid;
        result = 31 * result + (cctime != null ? cctime.hashCode() : 0);
        result = 31 * result + listorder;
        result = 31 * result + (bean != null ? bean.hashCode() : 0);
        return result;
    }
}
